#include <QtGui/QApplication>
#include "mainwindow.h"
#include <QTextCodec>
//#include <QtPlugin>

//Q_IMPORT_PLUGIN(qsqlmysql)

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QTextCodec *wincodec = QTextCodec::codecForName("cp1251");
    QTextCodec::setCodecForCStrings(wincodec);
    QTextCodec::setCodecForLocale(wincodec);
    QTextCodec::setCodecForTr(wincodec);

    MainWindow w;
    w.show();

    return a.exec();
}
